<?php
namespace api\home\controller;

use think\Db;
use think\Cache;
use think\Validate;
use api\common\controller\RestBaseController;

class IndexController extends RestBaseController
{

    public function version(){
    	$data = Db::name('version')->field('newversion,content,enforce,android,ios,createtime')->order('id desc')->find();
    	$this->success("成功", [
            'version' => $data
        ]);
    }

}
